﻿using Magic.Core;
using System;
using System.ComponentModel.DataAnnotations;

namespace Magic.Application
{
    /// <summary>
    /// Vender输入参数
    /// </summary>
    public class VenderInput : PageInputBase
    {
        /// <summary>
        /// 租户
        /// </summary>
        public virtual long TenantId { get; set; }
        
        /// <summary>
        /// 名称
        /// </summary>
        public virtual string Name { get; set; }
        
        /// <summary>
        /// 联系人
        /// </summary>
        public virtual string Contact { get; set; }
        
        /// <summary>
        /// 联系电话
        /// </summary>
        public virtual string Tel { get; set; }
        
        /// <summary>
        /// 地址
        /// </summary>
        public virtual string Address { get; set; }
        
        /// <summary>
        /// 国家
        /// </summary>
        public virtual string Country { get; set; }
        
        /// <summary>
        /// 位置
        /// </summary>
        public virtual string Location { get; set; }
        
        /// <summary>
        /// 邮箱地址
        /// </summary>
        public virtual string Email { get; set; }
        
        /// <summary>
        /// 父级
        /// </summary>
        public virtual long ParentId { get; set; }
        
    }

    public class AddVenderInput : VenderInput
    {
    }

    public class DeleteVenderInput
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Required(ErrorMessage = "主键不能为空")]
        public long Id { get; set; }
        
    }

    public class UpdateVenderInput : VenderInput
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Required(ErrorMessage = "主键不能为空")]
        public long Id { get; set; }
        
    }

    public class QueryeVenderInput : DeleteVenderInput
    {

    }
}
